package movee.resilience4j;

import java.util.function.Predicate;

/**
 *
 * @author movee
 */
public class RecordFailurePredicate implements Predicate<Throwable> {

    @Override
    public boolean test(Throwable throwable) {
        return !(throwable instanceof BusinessException);
    }
}
